window.onload = function() {
    let slideshowList = document.querySelector('.slideshow-list');
    let images = Array.from(slideshowList.children);
    let currentIndex = 0;

    setInterval(function() {
        images[currentIndex].style.display = 'none';
        currentIndex = (currentIndex + 1) % images.length;
        images[currentIndex].style.display = 'block';
    }, 3000); // 每3秒切换一次图片
}